export const hanlderPlaceHolder = column => {
  // 处理默认 placeholder
  const search = column.render
  if (
    ['datetimerange', 'daterange', 'monthrange'].includes(
      search?.props?.type
    ) ||
    search?.props?.isRange
  ) {
    return {
      rangeSeparator: search?.props?.rangeSeparator ?? '至',
      startPlaceholder: search?.props?.startPlaceholder ?? '开始时间',
      endPlaceholder: search?.props?.endPlaceholder ?? '结束时间'
    }
  }
  const placeholder =
    search?.props?.placeholder ??
    (search?.name?.includes('el-input') ? '请输入' : '请选择')
  return placeholder
}
